package com.qqtech.qquan.send.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.qqtech.core.frame.model.Result;
import com.qqtech.core.frame.service.BaseService;
import com.qqtech.qquan.send.model.SendDeliveryOrder;
import com.qqtech.qquan.send.model.SendDeliveryOrderQuery;
import com.qqtech.qquan.send.model.SendDeliveryOrderVo;

public interface SendDeliveryOrderService extends BaseService<SendDeliveryOrder> {
	
	/**
	 * 生成配送单
	 * @param orderNo
	 * @return
	 */
	public Result createSendDeliveryOrder(String orderNo);
	
	/**
	 * 通过订单号获取配送单
	 * @param orderNo
	 * @return
	 */
	public List<SendDeliveryOrderVo> findByOrderNo(String orderNo);
	
	/**
	 * 通过订单号获取配送单 没有配送单明细
	 * @param orderNo
	 * @return
	 */
	public List<SendDeliveryOrderVo> findOnlyByOrderNo(String orderNo);
	
	/**
	 * 后台查询列表
	 * @param query
	 * @param pageable
	 * @return
	 */
	public Page<SendDeliveryOrderVo> queryPageListAdmin(SendDeliveryOrderQuery query, Pageable pageable);
}